<%--
功能: 库存日志列表控件
--%>
<%@ tag body-content="scriptless"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="selectorId" required="true" rtexprvalue="true" type="java.lang.String" description="selector id"%>

<c:set var="ui_dialog" value="true" scope="request"/>
<fmt:message key="inventoryAuditList.heading" var="title"/>	
<div id="divDlg${selectorId}" style="visibility:hidden;position:absolute;overflow: auto;">
	<iframe id="${selectorId}Iframe"  name="${selectorId}Iframe" frameborder="0"  width="100%" height="550" scrolling="no">
		<!-- 放置内容 fillDiv -->
	</iframe>
</div>

<script type="text/javascript" defer>

var ui_dialog_${selectorId};
var ${selectorId}Iframe = $j("#${selectorId}Iframe")[0];
var ${selectorId}CallbackFunc = eval(${callbackFunc});;
var ${selectorId}Multiple = ${empty multiple?false:multiple};
$j(document).ready(function(){
	ui_dialog_${selectorId} = $j("#divDlg${selectorId}"); 
}); 

//模拟重写打开dialog方法
function showDialogOf${selectorId}(productSkuId)
{
	ui_dialog_${selectorId}.css("visibility","visible");
	ui_dialog_${selectorId}.dialog({ beforeclose:beforecloseOf${selectorId}, title:"${title}", modal: true, resizable:false,height:600, width:900, bgiframe: true,overlay: { opacity: 0.5, background: "black" } });
	${selectorId}Iframe.src =__ctxPath + "/inventory/inventoryAudit/windowPage.html?selectorId=${selectorId}&productSkuId="+productSkuId;
	ui_dialog_${selectorId}.dialog("open");
	
}

//模拟重写关闭dialog方法
function closeDialogOf${selectorId}()
{
	${selectorId}Iframe.src = __ctxPath + '/loading.html?decorator=windowPage';
	ui_dialog_${selectorId}.dialog("close");
}

//窗体关闭前的函数
function beforecloseOf${selectorId}(){
	${selectorId}Iframe.src = __ctxPath + '/loading.html?decorator=windowPage';
}	

</script>